texthistory: hoist single actions from group
authorChristian Hergert <chergert@redhat.com>
Wed, 30 Jun 2021 23:40:15 +0000 (16:40 -0700)
committerChristian Hergert <chergert@redhat.com>
Wed, 30 Jun 2021 23:40:54 +0000 (16:40 -0700)
commitd8ab2e6d0374f78fc96bebca0a29f91cbddb4236
tree2a5d45f220ab2b2505e7474aad2c034b56fd76da
parente9d3d3e3cf03781deb4dae02713e175f9515a918
texthistory: hoist single actions from group

In many cases across GtkTextBuffer, we end up with operations performed
inside of a begin/end user action. Those can be coalesced into a single
sub-action within the group, and hoisted out of the group. Doing so
increases the chances that we chain similar actions together for words.

Additionally, this fixes an issue introduced in
6179886b14eccd3034dc8121aac7b709aac073ec for #3977 where GNOME Text Editor
started to group all possible actions into a single group.

Fixes GNOME/gnome-text-editor#97
gtk/gtktexthistory.c